import Mock from 'mockjs';
const LoginUsers = [
  {
    id: 1,
    username: 'admin',
    password: '123456',
    avatar: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1016961158,2468130341&fm=26&gp=0.jpg',
    name: '于航'
  }
];

const Users = [];

for (let i = 0; i < 100; i++) {
  Users.push(Mock.mock({
    id: Mock.Random.guid(),
    name: Mock.Random.cname(),
    addr: Mock.mock('@county(true)'),
    'age|18-50': 1,
    birth: Mock.Random.date(),
    sex: Mock.Random.integer(0, 1)
  }));
};


const Orders = [];

for(let i = 0;i<50;i++){
	Orders.push(Mock.mock({
		id:Mock.Random.guid(),
		payname:Mock.Random.cname(),
		'buyname|1':['牛仔拼接卫衣女中长款宽松假两件女上衣大码打底衫女秋冬长袖t恤','mico七分袖','名苑连衣裙','纯棉连帽卫衣裙女长款过膝宽松秋冬小个子卫衣连衣裙慵懒风發玖','嘻哈风外套女秋冬2019新款潮ins百搭拉链宽松街头连帽开衫卫衣','罗家RMOJUL 2019秋装女装新款 简约修身亮丝内搭植绒打底衫上衣','MIUCO名媛小香风粗花呢钉珠流苏收腰显瘦连衣裙2019秋冬新款女装k','轻奢 复古黑色真丝丝绒上衣女 双绉蝴蝶结飘带领秋冬套头打底衫','裤子女秋冬2019新款复古灯芯绒高腰宽松显瘦直筒休闲裤百搭长裤','女装 高级轻型羽绒背心 419775 优衣库UNIQLO ','罗家RMOJUL 2019秋装女装新款 优雅飘带领雪纺拼接粗花呢连衣裙','美特斯邦威卫衣女2019秋季新款休闲潮流米奇图案圆领女士套头卫衣'],
		addr: Mock.mock('@county(true)'),
		"shopTel": /^1(5|3|7|8)[0-9]{9}$/,//生成随机电话号
	}))
};


export { LoginUsers, Users , Orders };
